package com.cby.operation.login.ui

import android.app.Activity
import android.os.Bundle
import android.view.View
import com.cby.operation.common.ui.BaseDialogFragment
import com.cby.operation.login.data.InternalTip
import com.cby.operation.sdk.TAG_FRAGMENT_TIP_BANNED

/**
 * @description: LoginTipDialogFragment
 *
 * @author ChenBaoyang
 * @date 7/23/21 16:52
 */
class LoginTipDialogFragment : BaseDialogFragment() {

    companion object{
        private const val KEY_TIPS = "key_tips"

        fun show(activity: Activity, tip: InternalTip) : LoginTipDialogFragment {
            val fragment = LoginTipDialogFragment()
            val data = Bundle()
            data.putParcelable(KEY_TIPS, tip)
            fragment.arguments = data
            fragment.show(activity.fragmentManager, TAG_FRAGMENT_TIP_BANNED)

            return fragment
        }
    }

    fun update(tip: InternalTip) {

    }

    override fun parseArgs() {

    }

    override fun layoutName() = "login_tip_dialog_fragment"

    override fun initView(view: View?) {

    }

    override fun setContent() {

    }

    override fun initListener() {

    }
}